<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"   
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui">
    <body>
        <ui:composition>
            <p:menu>
                <p:submenu label="Quản trị hệ thống" rendered="#{securityBean.isUserInRole('ADMINISTRATOR')}">
                    <p:menuitem value="Danh sách role" url="/admin/role/list.jsf" ajax="false"/>
                    <p:menuitem value="Danh sách trang web" url="/admin/page/list.jsf" ajax="false"/>
                </p:submenu>
                
                <p:submenu label="Tài khoản" rendered="#{securityBean.isUserInRole('CUSTOMER')}">
                    <p:menuitem value="Nạp tiền" url="/topup.jsf" ajax="false"/>
                    <p:menuitem value="Quản lý giao dịch" url="/transaction.jsf" ajax="false"/>
                </p:submenu>
            </p:menu>
        </ui:composition>
    </body>
</html>